<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html">RegularizedKernelMatrix</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_regularized_kernel_matrix-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Kernel Gram matrix with modified diagonal.  
 <a href="classshark_1_1_regularized_kernel_matrix.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_regularized_kernel_matrix_8h_source.html">shark/LinAlg/RegularizedKernelMatrix.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ab9a480348d4b71ee2e01ca9bb9d3cd3e" id="r_ab9a480348d4b71ee2e01ca9bb9d3cd3e"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_kernel_matrix.html#ac4a1b86d81dc86652e3226b7d0a79f55">Matrix::QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a></td></tr>
<tr class="separator:ab9a480348d4b71ee2e01ca9bb9d3cd3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a36bdf57606893668b6b7fc2e187d38fc" id="r_a36bdf57606893668b6b7fc2e187d38fc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a36bdf57606893668b6b7fc2e187d38fc">RegularizedKernelMatrix</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;kernelfunction, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;data, const RealVector &amp;diagModification)</td></tr>
<tr class="separator:a36bdf57606893668b6b7fc2e187d38fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5c4405d369405498a16ae04e7cf8f18" id="r_ad5c4405d369405498a16ae04e7cf8f18"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ad5c4405d369405498a16ae04e7cf8f18">operator()</a> (std::size_t i, std::size_t j) const</td></tr>
<tr class="memdesc:ad5c4405d369405498a16ae04e7cf8f18"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a single matrix entry  <br /></td></tr>
<tr class="separator:ad5c4405d369405498a16ae04e7cf8f18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaef24efda3b1d8bff9a9e23c58985694" id="r_aaef24efda3b1d8bff9a9e23c58985694"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aaef24efda3b1d8bff9a9e23c58985694">entry</a> (std::size_t i, std::size_t j) const</td></tr>
<tr class="memdesc:aaef24efda3b1d8bff9a9e23c58985694"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a single matrix entry  <br /></td></tr>
<tr class="separator:aaef24efda3b1d8bff9a9e23c58985694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c6ca54b0374328f55954e902b88321d" id="r_a4c6ca54b0374328f55954e902b88321d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a4c6ca54b0374328f55954e902b88321d">row</a> (std::size_t k, std::size_t start, std::size_t end, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a> *storage) const</td></tr>
<tr class="memdesc:a4c6ca54b0374328f55954e902b88321d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the i-th row of the kernel matrix.  <br /></td></tr>
<tr class="separator:a4c6ca54b0374328f55954e902b88321d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a831a5280628bf93c3725c0998b3e6a94" id="r_a831a5280628bf93c3725c0998b3e6a94"><td class="memTemplParams" colspan="2">template&lt;class M &gt; </td></tr>
<tr class="memitem:a831a5280628bf93c3725c0998b3e6a94"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a831a5280628bf93c3725c0998b3e6a94">matrix</a> (blas::matrix_expression&lt; M, blas::cpu_tag &gt; &amp;storage) const</td></tr>
<tr class="memdesc:a831a5280628bf93c3725c0998b3e6a94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the kernel-matrix.  <br /></td></tr>
<tr class="separator:a831a5280628bf93c3725c0998b3e6a94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af31efdb92598b323f1f170bd869d56a8" id="r_af31efdb92598b323f1f170bd869d56a8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#af31efdb92598b323f1f170bd869d56a8">flipColumnsAndRows</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:af31efdb92598b323f1f170bd869d56a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">swap two variables  <br /></td></tr>
<tr class="separator:af31efdb92598b323f1f170bd869d56a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad45561456f338f3e1d21495030a49d5e" id="r_ad45561456f338f3e1d21495030a49d5e"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ad45561456f338f3e1d21495030a49d5e">size</a> () const</td></tr>
<tr class="memdesc:ad45561456f338f3e1d21495030a49d5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the size of the quadratic matrix  <br /></td></tr>
<tr class="separator:ad45561456f338f3e1d21495030a49d5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae18e8a97284551effcabcbf2a4bac945" id="r_ae18e8a97284551effcabcbf2a4bac945"><td class="memItemLeft" align="right" valign="top">unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ae18e8a97284551effcabcbf2a4bac945">getAccessCount</a> () const</td></tr>
<tr class="memdesc:ae18e8a97284551effcabcbf2a4bac945"><td class="mdescLeft">&#160;</td><td class="mdescRight">query the kernel access counter  <br /></td></tr>
<tr class="separator:ae18e8a97284551effcabcbf2a4bac945"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b05f90e9cab384c7a217a6d3e16550b" id="r_a5b05f90e9cab384c7a217a6d3e16550b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a5b05f90e9cab384c7a217a6d3e16550b">resetAccessCount</a> ()</td></tr>
<tr class="memdesc:a5b05f90e9cab384c7a217a6d3e16550b"><td class="mdescLeft">&#160;</td><td class="mdescRight">reset the kernel access counter  <br /></td></tr>
<tr class="separator:a5b05f90e9cab384c7a217a6d3e16550b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a20c2d877a6ec81f5862e36ba63966200" id="r_a20c2d877a6ec81f5862e36ba63966200"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_kernel_matrix.html">Matrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">m_matrix</a></td></tr>
<tr class="separator:a20c2d877a6ec81f5862e36ba63966200"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea1357071964b834f427e45f9d3bb304" id="r_aea1357071964b834f427e45f9d3bb304"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aea1357071964b834f427e45f9d3bb304">m_diagMod</a></td></tr>
<tr class="separator:aea1357071964b834f427e45f9d3bb304"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, class CacheType&gt;<br />
class shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;</div><p>Kernel Gram matrix with modified diagonal. </p>
<dl class="section user"><dt></dt><dd>Regularized version of <a class="el" href="classshark_1_1_kernel_matrix.html" title="Kernel Gram matrix.">KernelMatrix</a>. The regularization is achieved by adding a vector to the matrix diagonal. In particular, this is useful for support vector machines with 2-norm penalty term. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00062">62</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ab9a480348d4b71ee2e01ca9bb9d3cd3e" name="ab9a480348d4b71ee2e01ca9bb9d3cd3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9a480348d4b71ee2e01ca9bb9d3cd3e">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_kernel_matrix.html#ac4a1b86d81dc86652e3226b7d0a79f55">Matrix::QpFloatType</a> <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00067">67</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a36bdf57606893668b6b7fc2e187d38fc" name="a36bdf57606893668b6b7fc2e187d38fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36bdf57606893668b6b7fc2e187d38fc">&#9670;&#160;</a></span>RegularizedKernelMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::RegularizedKernelMatrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>kernelfunction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RealVector &amp;&#160;</td>
          <td class="paramname"><em>diagModification</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">kernelfunction</td><td>kernel function </td></tr>
    <tr><td class="paramname">data</td><td>data to evaluate the kernel function </td></tr>
    <tr><td class="paramname">diagModification</td><td>vector d of diagonal modifiers </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00073">73</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ad45561456f338f3e1d21495030a49d5e">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::size()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aaef24efda3b1d8bff9a9e23c58985694" name="aaef24efda3b1d8bff9a9e23c58985694"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaef24efda3b1d8bff9a9e23c58985694">&#9670;&#160;</a></span>entry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a> <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::entry </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return a single matrix entry </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00086">86</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aea1357071964b834f427e45f9d3bb304">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_diagMod</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ad5c4405d369405498a16ae04e7cf8f18">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::operator()()</a>.</p>

</div>
</div>
<a id="af31efdb92598b323f1f170bd869d56a8" name="af31efdb92598b323f1f170bd869d56a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af31efdb92598b323f1f170bd869d56a8">&#9670;&#160;</a></span>flipColumnsAndRows()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::flipColumnsAndRows </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>swap two variables </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00117">117</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_kernel_matrix.html#a45ad0d3cc5b9ea58069eb93713289015">shark::KernelMatrix&lt; InputType, CacheType &gt;::flipColumnsAndRows()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aea1357071964b834f427e45f9d3bb304">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_diagMod</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>.</p>

</div>
</div>
<a id="ae18e8a97284551effcabcbf2a4bac945" name="ae18e8a97284551effcabcbf2a4bac945"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae18e8a97284551effcabcbf2a4bac945">&#9670;&#160;</a></span>getAccessCount()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long long <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::getAccessCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>query the kernel access counter </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00127">127</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_kernel_matrix.html#a834648ff97fe9d3269a8a821299026ee">shark::KernelMatrix&lt; InputType, CacheType &gt;::getAccessCount()</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_squared_hinge_c_svm_trainer.html#a039491eb212c684d4585db0132545a85">shark::SquaredHingeCSvmTrainer&lt; InputType, CacheType &gt;::train()</a>.</p>

</div>
</div>
<a id="a831a5280628bf93c3725c0998b3e6a94" name="a831a5280628bf93c3725c0998b3e6a94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a831a5280628bf93c3725c0998b3e6a94">&#9670;&#160;</a></span>matrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<div class="memtemplate">
template&lt;class M &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::matrix </td>
          <td>(</td>
          <td class="paramtype">blas::matrix_expression&lt; M, blas::cpu_tag &gt; &amp;&#160;</td>
          <td class="paramname"><em>storage</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the kernel-matrix. </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00107">107</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aea1357071964b834f427e45f9d3bb304">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_diagMod</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>, <a class="el" href="classshark_1_1_kernel_matrix.html#ad5365d1a9d11ca1175b6bb35607db6d1">shark::KernelMatrix&lt; InputType, CacheType &gt;::matrix()</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ad45561456f338f3e1d21495030a49d5e">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::size()</a>.</p>

</div>
</div>
<a id="ad5c4405d369405498a16ae04e7cf8f18" name="ad5c4405d369405498a16ae04e7cf8f18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5c4405d369405498a16ae04e7cf8f18">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a> <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return a single matrix entry </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00082">82</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aaef24efda3b1d8bff9a9e23c58985694">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>.</p>

</div>
</div>
<a id="a5b05f90e9cab384c7a217a6d3e16550b" name="a5b05f90e9cab384c7a217a6d3e16550b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b05f90e9cab384c7a217a6d3e16550b">&#9670;&#160;</a></span>resetAccessCount()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::resetAccessCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>reset the kernel access counter </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00131">131</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>, and <a class="el" href="classshark_1_1_kernel_matrix.html#ad76f1daf43dd80689ad630cab48a111a">shark::KernelMatrix&lt; InputType, CacheType &gt;::resetAccessCount()</a>.</p>

</div>
</div>
<a id="a4c6ca54b0374328f55954e902b88321d" name="a4c6ca54b0374328f55954e902b88321d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c6ca54b0374328f55954e902b88321d">&#9670;&#160;</a></span>row()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::row </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ab9a480348d4b71ee2e01ca9bb9d3cd3e">QpFloatType</a> *&#160;</td>
          <td class="paramname"><em>storage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the i-th row of the kernel matrix. </p>
<p>The entries start,...,end of the i-th row are computed and stored in storage. There must be enough room for this operation preallocated. </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00097">97</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aea1357071964b834f427e45f9d3bb304">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_diagMod</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>, and <a class="el" href="classshark_1_1_kernel_matrix.html#a3ebcd91ea57f440376d14741e7697c6d">shark::KernelMatrix&lt; InputType, CacheType &gt;::row()</a>.</p>

</div>
</div>
<a id="ad45561456f338f3e1d21495030a49d5e" name="ad45561456f338f3e1d21495030a49d5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad45561456f338f3e1d21495030a49d5e">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return the size of the quadratic matrix </p>

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00123">123</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a20c2d877a6ec81f5862e36ba63966200">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::m_matrix</a>, and <a class="el" href="classshark_1_1_kernel_matrix.html#ad2bb6df532f1e6aa39fa30f6efad5222">shark::KernelMatrix&lt; InputType, CacheType &gt;::size()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a831a5280628bf93c3725c0998b3e6a94">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::matrix()</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a36bdf57606893668b6b7fc2e187d38fc">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::RegularizedKernelMatrix()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aea1357071964b834f427e45f9d3bb304" name="aea1357071964b834f427e45f9d3bb304"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea1357071964b834f427e45f9d3bb304">&#9670;&#160;</a></span>m_diagMod</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::m_diagMod</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00136">136</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aaef24efda3b1d8bff9a9e23c58985694">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#af31efdb92598b323f1f170bd869d56a8">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::flipColumnsAndRows()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a831a5280628bf93c3725c0998b3e6a94">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::matrix()</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a4c6ca54b0374328f55954e902b88321d">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::row()</a>.</p>

</div>
</div>
<a id="a20c2d877a6ec81f5862e36ba63966200" name="a20c2d877a6ec81f5862e36ba63966200"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20c2d877a6ec81f5862e36ba63966200">&#9670;&#160;</a></span>m_matrix</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_kernel_matrix.html">Matrix</a> <a class="el" href="classshark_1_1_regularized_kernel_matrix.html">shark::RegularizedKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::m_matrix</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_regularized_kernel_matrix_8h_source.html#l00135">135</a> of file <a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#aaef24efda3b1d8bff9a9e23c58985694">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#af31efdb92598b323f1f170bd869d56a8">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::flipColumnsAndRows()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ae18e8a97284551effcabcbf2a4bac945">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::getAccessCount()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a831a5280628bf93c3725c0998b3e6a94">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::matrix()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a5b05f90e9cab384c7a217a6d3e16550b">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::resetAccessCount()</a>, <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#a4c6ca54b0374328f55954e902b88321d">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::row()</a>, and <a class="el" href="classshark_1_1_regularized_kernel_matrix.html#ad45561456f338f3e1d21495030a49d5e">shark::RegularizedKernelMatrix&lt; InputType, CacheType &gt;::size()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/LinAlg/<a class="el" href="_regularized_kernel_matrix_8h_source.html">RegularizedKernelMatrix.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
